﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace BanHangCshap.DanhMuc.gkhtdl63
{
    public partial class frmDanhmucSanpham : Form
    {
        public frmDanhmucSanpham()
        {
            InitializeComponent();
        }

        DanhMuc.gkhtdl63.Nghiemthu.frmSoluongNhiemthu frm = new BanHangCshap.DanhMuc.gkhtdl63.Nghiemthu.frmSoluongNhiemthu();
        Class.gkhtdl63.BLL.QCBoSanphamBLL xgQCBoSanphamBLL = new BanHangCshap.Class.gkhtdl63.BLL.QCBoSanphamBLL();

        void LoadSanpham()
        {
            gridControl1.DataSource = xgQCBoSanphamBLL.QCBoSanpham_LayDSSanpham();
        }

        private void frmDanhmucSanpham_Load(object sender, EventArgs e)
        {
            LoadSanpham();
            frm.Tailai += new MyEvent_LoadData(frm_Tailai);
        }

        void frm_Tailai(object sender, ELoadData e)
        {
            LoadSanpham();
        }

        private void btnTailai_Click(object sender, EventArgs e)
        {
            LoadSanpham();
        }
    }
}
